package com.bank.basic.service.client;

import com.bank.model.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author Cejay1314
 * @version 1.0
 * @create 2023/4/9 16:19
 */
@FeignClient(name = "service-user", url = "http://localhost:8083/user")
@Component
public interface UserService {
    @GetMapping("/id")
    User queryUser(Long id);
}
